/**
 * SubInstruction(a,b).act() => a=a-b
 * @author pabergg
 *
 */
public class SubInstruction implements InstructionInterface {

	IntWrapper param1;
	IntWrapper param2;
	
	public SubInstruction(IntWrapper a,IntWrapper b){
		param1=a;
		param2=b;
	}
	
	@Override
	public Integer act() {
		param1.set(param1.get()-param2.get());
		return null;
	}

}
